package pws.scv;

import java.awt.GridLayout;

import javax.swing.JFrame;
import javax.swing.JLabel;

public class AloClasseSwing {
	
	private static int linha = 6, coluna = 1;
	public static String[] alunos = new String[] 
		{"Davi", "Gustavo Barbosa", "Arthur Azevedo(Artinfo)", "Edkarla Andrade"};
	
	public static void main(String args[]) {
		
		JFrame frame = new JFrame("Hello");
		JLabel labelAlo = new JLabel("Hello, Cruel World.");
		JLabel labelProfessor = new JLabel("Eu sou o professor Pedro Jr.");
		
		frame.getContentPane().setLayout(new GridLayout(linha,coluna));
		frame.getContentPane().add(labelAlo);
		frame.getContentPane().add(labelProfessor);
		
		frame.getContentPane().add(new JLabel(alunos[0]));
		frame.getContentPane().add(new JLabel(alunos[1]));
		frame.getContentPane().add(new JLabel(alunos[2]));
		frame.getContentPane().add(new JLabel(alunos[3]));					
		
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.pack();
		frame.setVisible(true);
		
	}
	
}
